iShell Help
Tribeworks > iShell > Commands >
  Run
   
The Run command starts and stops an element. Any element with a duration can act as a timer that starts and stops. Movie and Sound elements play their media when running. Any element with a Tweener set by the Set Tweener command will tween with running. The Set Rate command will control the speed of the element as it plays.

Elements do not autorun - they must be started with the Run command. Elements that have media are automatically stopped when they are unloaded - so it is useful to include a Loaded event and a Run command in any element that you want to autorun when loaded. Movie and Sound elements that are progressively downloading by HTTP may stop if their buffers are exhausted. RTP and RTSP streaming media may also pause automatically if there are network problems.

Options

  • Target Argument: The element that will run when the command is triggered.
  • State Argument: this is equivalent to setting the Running attribute with the Set Attribute command or using the play button on the Movie or Sound controller.
    • Yes: Turns the timer on so that it is running.
    • No: Turns the timer off so that it is stopped.
    • Toggle: Sets the timer to the opposite of what it is at that moment.
  • Rewind: The rewind option resets the element's timer to 0. This is equivalent to setting the time to the beginning with the Set Time command.